import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const routes = [
	{ path: '/', component: () => import('components/login.vue') },
	{
		path: '/home',
		component: () => import('views/Home.vue'),
		children: [
			{ path: '/', component: () => import('components/mainConet.vue') },
			{ path: '/Ynintroduce', component: () => import('components/Ynintroduce.vue') },
			{ path: '/Ynstory', component: () => import('components/Ynstory.vue') },
			{ path: '/Ynminsu', component: () => import('components/Ynminsu.vue') },
			{ path: '/Ynindex', component: () => import('components/Ynindex.vue') },
			{ path: '/Ynproduct', component: () => import('components/Ynproduct.vue') },
			{ path: '/news', component: () => import('components/news.vue') },
			{ path: '/dbnews', component: () => import('components/dbnews.vue') },
			
		]
	},
	
	{ path: '/reg', component: () => import('components/reg.vue') },
]

const router = new VueRouter({
	mode: 'history',
	base: process.env.BASE_URL,
	routes
})

export default router
